package net.kleinhenz.questor.model;

public abstract class ExecutableBase implements Executable
{
	private String codeText = null;

	public static Type toType(String typeText) {
        if (Executable.TYPE_JS.equals(typeText))
        	return Type.JAVASCRIPT;        
        else
        	return null;
	}
	
	public ExecutableBase(String code)
	{
		super();
		this.setCode(code);
	}
	
	public String getType()
	{
		return null;
	}
	
	public String getCode()
	{
		return codeText;
	}
	
	public void setCode(String code)
	{
		this.codeText = code;
	}	
}
